package com.x.erp.rpc;

import com.x.erp.model.MultilevelActivityBuy;
import com.x.framework.controller.ResultModel;
import com.x.framework.rpc.BaseRpcService;

import java.util.List;

/**
 * 多级营销活动购买记录
 */
public interface MultilevelActivityBuyRpcService extends BaseRpcService {

	/**
	 * 查询多级营销活动购买记录列表
	 * @param multilevelActivityBuy
	 * @return
	 */
	List<MultilevelActivityBuy> selectMultilevelActivityBuyList(MultilevelActivityBuy multilevelActivityBuy);

	/**
	 * 查询多级营销活动购买记录数量
	 * @param multilevelActivityBuy
	 * @return
	 */
	int selectMultilevelActivityBuyNum(MultilevelActivityBuy multilevelActivityBuy);

	/**
	 * 新增多级营销活动购买记录信息
	 * @param multilevelActivityBuy
	 * @return
	 */
	MultilevelActivityBuy insertMultilevelActivityBuy(MultilevelActivityBuy multilevelActivityBuy);

	/**
	 * 修改多级营销活动购买记录信息
	 * @param multilevelActivityBuy
	 * @return
	 */
	int updateMultilevelActivityBuy(MultilevelActivityBuy multilevelActivityBuy);

	/**
	 * 删除多级营销活动购买记录信息
	 * @param multilevelActivityBuy
	 */
	int deleteMultilevelActivityBuy(MultilevelActivityBuy multilevelActivityBuy);

	/**
	 * 购买成交
	 * @param multilevelActivityBuy
	 * @return
	 */
	ResultModel updateDeal(MultilevelActivityBuy multilevelActivityBuy, String shopId, String saleUserId);
}
